/*
  Motor.h- Library for controlling two motors with a ardumoto shield.
  Created by Matthew Hughes, febuary 18, 2014.
  Released into the public domain.
*/
#ifndef Motor_h
#define Motor_h

#include "Arduino.h"

class Motor
{
  public:
	Motor(int pwm_a, int pwm_b, int dir_a, int dir_b, int val);
	void setup();
	void pwm_forw();
	void pwm_back();
	void Full_Forward();
	void Full_Backward();
	void Half_Forward();
	void Half_Backward();
	void Fadein();
	void Fadeout();
	void stop_A();
	void stop_B();
	void stop_AB();
  private:
	int _pwm_a, _pwm_b, _dir_a, _dir_b, _val;
};
#endif
